﻿#例9-6使用read()方法读取文本文件
with open ("studentinfo.txt",mode='r') as f1:
    print(f1.read(2))
    print(f1.read(2))
    print(f1.read(6))
    print(f1.read(8))
